package com.youhome.service;



import com.youhome.model.AssociateCity;
import com.youhome.model.AssociateZip;
import com.youhome.model.Zip;

import java.util.List;

/**
 * Created by chen365 on 2017/10/31.
 */
public interface ZipService {

    List<String> selectByCity(String city) throws Exception;

    List<Zip> selectByLikeZipCode(String zipcode, int page, int pageSize);

    List<Zip> selectByLikeCity(String city, int page, int pageSize);

    List<AssociateZip> selectAssociateByLikeZip(String zip);

    List<AssociateCity> selectAssociateByLikeCity(String city);

    Zip selectByPrimaryKey(String zipcode);

    List<String> selectZipsByCity(String city);

    List<Zip> selectByBean(Zip record);
    /**
     * 查询与 zipcode 相同城市下所有 zipcode 数据,不包含查询的zipcode
     * @param zip  邮编
     * @return
     */
    List<String> selectSameCityZipsByZip(String zip);
}
